/**
 * Tree structure tree plugin
 * init_hideMenu		加载页面时是否要将菜单缩上去。
 * 
 */
$.fn.extcloudSlideMenu=function(options) {
	 var defaultOptions = {
			 init_hideMenu: false ,
			 hideObject: "#layout_search" ,
			 speed: "normal" ,
			 changeImgObject: "li.layout_search_pull_ss a img" ,
			 upImgUrl : context + "/common/images/menu_up.gif" ,
			 downImgUrl : context + "/common/images/menu_down.gif"
	 } 
	 
	 var os = $.extend(defaultOptions,options);
	 var currentStatus = true ;
	 $(this).click(function(){
		$(os.hideObject).slideToggle(os.speed);
		if(currentStatus) {
			$(os.changeImgObject).attr("src" , os.downImgUrl) ;
		}else {
			$(os.changeImgObject).attr("src" , os.upImgUrl) ;
		}
		currentStatus = !currentStatus ;

	 });
	 if(os.init_hideMenu) {
		 $(this).click() ;
	 }
}

